package com.yixun.qfbao.mapper;

import com.yixun.qfbao.model.dto.PremisesRecommenderDto;
import com.yixun.qfbao.xf.model.PremisesRecommender;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: channel-parent
 *
 * @description:
 *
 * @author: Seven.wang
 *
 * @create: 2019-11-05 11:36
 **/
public interface PremisesRecommenderMapper {

    List<PremisesRecommenderDto> selectListByPremisesId(Long premisesId);

    List<PremisesRecommenderDto> selectListForPremisesInfo(Long premisesId);

    void batchDeleted(List<PremisesRecommender> list);

    void batchAdd(List<PremisesRecommender> list);

    PremisesRecommenderDto getPremisesRecommenderByUuid(String recommenderUuid);

    List<PremisesRecommender> selectListByIds(@Param("premisesIds")List<Long> premisesIds, @Param("recommenderIds")List<Long> recommenderIds, @Param("deleteFlag")String deleteFlag);

    List<PremisesRecommenderDto> selectListByPremisesIds(@Param("premisesIds")List<Long> premisesIds);

    List<PremisesRecommender> selectPremisesRecommenderByPremisesId(Long premisesId);

    List<PremisesRecommenderDto> selectPremisesRecommenderList(Long companyId);

    List<PremisesRecommenderDto> selectRecommenderList(Long companyId);

    List<PremisesRecommenderDto> selectListById(Long recommenderId);
}
